//
//  LCProfileController.swift
//  SinaWeiBo
//
//  Created by mac on 16/11/30.
//  Copyright © 2016年 heima. All rights reserved.
//

import UIKit

class LCProfileController: LCVisitorBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()

        if isLogon {
            setupUI()
        }else{
            visitorView?.updateVisitorView(imageName: "visitordiscover_image_profile", message: "登录后，你的微博、相册、个人资料会显示在这里，展示给别人")
        }
        
    }
    //  添加push按钮
    private func setupUI() {
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Push", target: self, action: #selector(pushAction))
    }
    
    //  MARK: -- push操作
    
    @objc private func pushAction() {
        
        let testVC = LCTestController()
        
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }


}
